/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package event;

import net.sf.appia.core.events.SendableEvent;
import util.Constants;

/**
 *
 * @author Welington
 */
public class SendEvent extends SendableEvent{
    private int rid;
    
    public SendEvent(int id) {
        rid = id;
    }
    
    public void setMessage(String message) {
        this.setMessage(Constants.buildMessage(message));
    }
    
    public int getId() {
        return rid;
    }
    
    public String getMessageContent() {
        return Constants.extractContent(message);
    }
}
